package com.zj.classwork;
import java.util.Scanner;
public class ClassWork3 {
    public static void main(String[] args) {
    Scanner input=new Scanner(System.in);

    for(int i=1;i<=3;i++)
    {   int sum=0;
        double avg=0;
        System.out.println("请输入第"+i+"班级的成绩");
        for (int j=1;j<=4;j++)
        {
            System.out.println("第"+j+"个学员的成绩：");
            int score= input.nextInt();
            sum+=score;
        }
        avg=sum/4.0;
        System.out.println("第"+i+"个班级参赛学员的平均分是："+avg);
    }
    }
}
